package com.erp.entity.goods;

import java.math.BigDecimal;

/**
 * 商品价格策略
 */
public class GoodsPriceStrategy {
    private Integer strategyId;           // 主键
    private Integer goodsId;              // 商品ID
    private Integer unitId;               // 计量单位（单计量或者多计量的副单位）
    private String unit;                  // 单位名称（单计量或者多计量的副单位）——冗余，便于价格策略显示
    private String barcode;               // 包装条码
    private BigDecimal retailPrice;       // 零售价
    private BigDecimal wholesalePrice;    // 批发价
    private BigDecimal vipPrice;          // VIP价
    private BigDecimal discount85;        // 八五折
    private BigDecimal discountLevel1;    // 折扣等价一价
    private BigDecimal minSalePrice;      // 最低销售价
    private BigDecimal expectedPurchasePrice; // 预计采购价
    private BigDecimal maxPurchasePrice;  // 最高采购价


    public GoodsPriceStrategy() {
    }

    public GoodsPriceStrategy(Integer strategyId, Integer goodsId, Integer unitId, String unit, String barcode, BigDecimal retailPrice, BigDecimal wholesalePrice, BigDecimal vipPrice, BigDecimal discount85, BigDecimal discountLevel1, BigDecimal minSalePrice, BigDecimal expectedPurchasePrice, BigDecimal maxPurchasePrice) {
        this.strategyId = strategyId;
        this.goodsId = goodsId;
        this.unitId = unitId;
        this.unit = unit;
        this.barcode = barcode;
        this.retailPrice = retailPrice;
        this.wholesalePrice = wholesalePrice;
        this.vipPrice = vipPrice;
        this.discount85 = discount85;
        this.discountLevel1 = discountLevel1;
        this.minSalePrice = minSalePrice;
        this.expectedPurchasePrice = expectedPurchasePrice;
        this.maxPurchasePrice = maxPurchasePrice;
    }

    /**
     * 获取
     * @return strategyId
     */
    public Integer getStrategyId() {
        return strategyId;
    }

    /**
     * 设置
     * @param strategyId
     */
    public void setStrategyId(Integer strategyId) {
        this.strategyId = strategyId;
    }

    /**
     * 获取
     * @return goodsId
     */
    public Integer getGoodsId() {
        return goodsId;
    }

    /**
     * 设置
     * @param goodsId
     */
    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    /**
     * 获取
     * @return unitId
     */
    public Integer getUnitId() {
        return unitId;
    }

    /**
     * 设置
     * @param unitId
     */
    public void setUnitId(Integer unitId) {
        this.unitId = unitId;
    }

    /**
     * 获取
     * @return unit
     */
    public String getUnit() {
        return unit;
    }

    /**
     * 设置
     * @param unit
     */
    public void setUnit(String unit) {
        this.unit = unit;
    }

    /**
     * 获取
     * @return barcode
     */
    public String getBarcode() {
        return barcode;
    }

    /**
     * 设置
     * @param barcode
     */
    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    /**
     * 获取
     * @return retailPrice
     */
    public BigDecimal getRetailPrice() {
        return retailPrice;
    }

    /**
     * 设置
     * @param retailPrice
     */
    public void setRetailPrice(BigDecimal retailPrice) {
        this.retailPrice = retailPrice;
    }

    /**
     * 获取
     * @return wholesalePrice
     */
    public BigDecimal getWholesalePrice() {
        return wholesalePrice;
    }

    /**
     * 设置
     * @param wholesalePrice
     */
    public void setWholesalePrice(BigDecimal wholesalePrice) {
        this.wholesalePrice = wholesalePrice;
    }

    /**
     * 获取
     * @return vipPrice
     */
    public BigDecimal getVipPrice() {
        return vipPrice;
    }

    /**
     * 设置
     * @param vipPrice
     */
    public void setVipPrice(BigDecimal vipPrice) {
        this.vipPrice = vipPrice;
    }

    /**
     * 获取
     * @return discount85
     */
    public BigDecimal getDiscount85() {
        return discount85;
    }

    /**
     * 设置
     * @param discount85
     */
    public void setDiscount85(BigDecimal discount85) {
        this.discount85 = discount85;
    }

    /**
     * 获取
     * @return discountLevel1
     */
    public BigDecimal getDiscountLevel1() {
        return discountLevel1;
    }

    /**
     * 设置
     * @param discountLevel1
     */
    public void setDiscountLevel1(BigDecimal discountLevel1) {
        this.discountLevel1 = discountLevel1;
    }

    /**
     * 获取
     * @return minSalePrice
     */
    public BigDecimal getMinSalePrice() {
        return minSalePrice;
    }

    /**
     * 设置
     * @param minSalePrice
     */
    public void setMinSalePrice(BigDecimal minSalePrice) {
        this.minSalePrice = minSalePrice;
    }

    /**
     * 获取
     * @return expectedPurchasePrice
     */
    public BigDecimal getExpectedPurchasePrice() {
        return expectedPurchasePrice;
    }

    /**
     * 设置
     * @param expectedPurchasePrice
     */
    public void setExpectedPurchasePrice(BigDecimal expectedPurchasePrice) {
        this.expectedPurchasePrice = expectedPurchasePrice;
    }

    /**
     * 获取
     * @return maxPurchasePrice
     */
    public BigDecimal getMaxPurchasePrice() {
        return maxPurchasePrice;
    }

    /**
     * 设置
     * @param maxPurchasePrice
     */
    public void setMaxPurchasePrice(BigDecimal maxPurchasePrice) {
        this.maxPurchasePrice = maxPurchasePrice;
    }

    public String toString() {
        return "GoodsPriceStrategy{strategyId = " + strategyId + ", goodsId = " + goodsId + ", unitId = " + unitId + ", unit = " + unit + ", barcode = " + barcode + ", retailPrice = " + retailPrice + ", wholesalePrice = " + wholesalePrice + ", vipPrice = " + vipPrice + ", discount85 = " + discount85 + ", discountLevel1 = " + discountLevel1 + ", minSalePrice = " + minSalePrice + ", expectedPurchasePrice = " + expectedPurchasePrice + ", maxPurchasePrice = " + maxPurchasePrice + "}";
    }
}
